using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using HISModels.Entities;

namespace HISModels.Mapping
{
	public class SysRoleActionMap : EntityTypeConfiguration<SysRoleAction>
	{
		public SysRoleActionMap()
		{
			// Primary Key
			this.HasKey(t => t.id);

			// Properties
			// Table & Column Mappings
			this.ToTable("SysRoleActions");
			this.Property(t => t.RoleId).HasColumnName("RoleId");
			this.Property(t => t.ActionId).HasColumnName("ActionId");
			this.Property(t => t.id).HasColumnName("id");
		}
	}
}

